-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add SoftwareEngineer, FrontendDeveloper, BackendDeveloper, AndroidDeve… #1185
base: master
Are you sure you want to change the base?
Conversation
…loper, FullStackDeveloper i think need to use Mixins and i add FrontDevMixin, BackDevMixin, AndroidDevMixin
app/main.py
Outdated
def __init__(self, name: str) -> None: | ||
super().__init__(name) | ||
self.skills = ["Python", "SQL", "Django", | ||
"JavaScript", "HTML", "CSS", ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__init__
method redundant here
app/main.py
Outdated
class FrontendDeveloper(SoftwareEngineer): | ||
def __init__(self, name: str) -> None: | ||
super().__init__(name) | ||
self.skills = ["JavaScript", "HTML", "CSS", ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.skills = ["JavaScript", "HTML", "CSS", ] | |
self.skills += ["JavaScript", "HTML", "CSS", ] |
You should not override skills, but update them.
app/main.py
Outdated
print(f"{self.name} started creating a web application...") | ||
print(f"{self.name} is creating an API...") | ||
print(f"{self.name} is creating a webpage...") | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use create_powerful_api
and create_awesome_web_page
methods here
plus skills in class use self.create_powerful_api and self.create_awesome_web_page
app/main.py
Outdated
class FullStackDeveloper(FrontendDeveloper, | ||
BackendDeveloper): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class FullStackDeveloper(FrontendDeveloper, | |
BackendDeveloper): | |
class FullStackDeveloper(FrontendDeveloper, BackendDeveloper): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Job!
…loper, FullStackDeveloper
i think need to use Mixins and i add FrontDevMixin, BackDevMixin, AndroidDevMixin